<template>
	<view class="myList">
		<view class="myList-box">
			<view class="myList-item">
				<view class="icon-text notice">
					<text class="lg text-gray cuIcon-notice"></text>
					<text>注意</text>
					<view class="notice-desc">
						如果您未实名认证请点击上传身份证号码完成实名认证
					</view>
				</view>
			</view>
		</view>
		<view class="myList-box">
			<view class="myList-item" @click="enlist">
				<view class="icon-text">
					<text class="lg text-gray cuIcon-calendar"></text>
					<text>我的报名</text>
				</view>
				<view class="list-look">
				</view>
			</view>
			<view class="myList-item" @click="referee">
				<view class="icon-text">
					<text class="lg text-gray cuIcon-appreciate"></text>
					<text>我的推荐</text>
				</view>
				<view class="list-look">
				</view>
			</view>
			<view class="myList-item">
				<view class="icon-text">
					<text class="lg text-gray cuIcon-refund"></text>
					<text>我的佣金</text>
				</view>
				<view class="list-look">
				</view>
			</view>
			<view class="myList-item">
				<view class="icon-text">
					<text class="lg text-gray cuIcon-text"></text>
					<text>我的推荐码</text>
				</view>
				<view class="list-look">
				</view>
			</view>
			<view class="myList-item">
				<view class="icon-text">
					<text class="lg text-gray cuIcon-service"></text>
					<text>联系客服</text>
				</view>
				<view class="list-look">
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			enlist() {
				uni.navigateTo({
					url: '/pages/enroll/enroll'
				})
				console.log('打开我的报名');
			},
			referee() {
				uni.navigateTo({
					url: '/pages/referee/referee'
				})
				console.log('打开我的推荐');
			}
		}
	}
</script>

<style lang="scss">
	.myList {
		background-color: #FAFAFA;
		overflow: hidden;
		position: relative;
		display: block;

		.myList-box {
			margin-top: 10px;
			background-color: #fff;

			.myList-item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				position: relative;
				line-height: 1.4;
				font-size: 1rem;
				padding: 0.75rem 0.6rem 0.65rem;

				&.myList-item:before {
					content: " ";
					position: absolute;
					left: 0.5rem;
					right: 0.5rem;
					bottom: -1px;
					height: 1px;
					border-top: 1px solid #ebebeb;
					color: #D9D9D9;
					-webkit-transform-origin: 0 0;
					-ms-transform-origin: 0 0;
					transform-origin: 0 0;
					-webkit-transform: scaleY(0.5);
					-ms-transform: scaleY(0.5);
					transform: scaleY(0.5);
				}

				.icon-text {

					&.notice {
						color: red;

						.notice-desc {
							font-size: 0.8rem;
							color: #999;
							text-indent: 2em;
						}
					}

					.lg {
						margin-right: 0.3rem;
					}
				}

				.list-look {
					color: #888;
					text-align: right;
					font-size: 0.65rem;
					margin-right: .2rem;
					line-height: 0.65rem;

					&.list-look:after {
						content: " ";
						display: inline-block;
						-webkit-transform: rotate(45deg);
						-ms-transform: rotate(45deg);
						transform: rotate(45deg);
						height: 0.4rem;
						width: 0.4rem;
						border-width: 1px 1px 0 0;
						border-color: #C8C8CD;
						border-style: solid;
						position: relative;
						top: 0px;
						margin-left: 0.3rem;
					}
				}
			}
		}
	}
</style>
